import java.util.Scanner;

public class Main1231 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int[] arr=new int[n];
        for (int i=0;i< arr.length;i++){
            arr[i]=sc.nextInt();
        }
        double a=0;
        int b=0;
        int c=0;
        for (int i=0;i< arr.length;i++){
            a=a+arr[i];
        }System.out.print(String.format("%.1f",a/n));
        System.out.printf(" ");
        for (int i=0;i< arr.length;i++){
            if (arr[i]>(a/n)){
                b++;
            }else c++;
        } System.out.print(b);
        System.out.printf(" ");
        System.out.print(c);
    }
}
